package com.bitcola.security.otc.mapper;

import com.bitcola.entity.ColaMeBalance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;

/**
 * 用户资金
 */
@Repository
public interface UserBalanceMapper extends Mapper<ColaMeBalance> {



    int addUserBanlance(@Param("userID") String userID, @Param("coinCode") String coinCode, @Param("gain") BigDecimal gain, @Param("key") String balanceKey);

    int reduceUserBanlance(@Param("userID") String userID, @Param("coinCode") String coinCode, @Param("gain") BigDecimal gain, @Param("key") String balanceKey);





}
